public class Automobile {
    //父类中的成员变量
    private String brand;
    private String plateNumber;

    //get/set
    public String getBrand() {
        return brand;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    //成员方法
    //无参构造器
    public Automobile(){

    }
    //单参构造器
    public Automobile(String brand){
        this.brand=brand;
    }

    //全参构造器
    public Automobile(String brand,String plateNumber){
        this(brand);
        this.plateNumber=plateNumber;
    }
    //计算租金的方法
    public double getRent(){
        double rent = 0.0;
        return rent;

       
    }

    //show方法
    public void show(){
        System.out.println("The brand of the car is: "+brand+"\nCar license plate is: "+plateNumber );
    }
}